<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<%
	String basePath = request.getContextPath();
%>
<s:set id="user" value="#request['USER_INFO']"/>

<div class="pageContent">
	<form method="post" action="<%=basePath%>/user/userModify.action" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone,'确认更新平台用户信息?')">
		<!-- 页面字段值 -->
		<div class="pageFormContent" layoutH="56">

			<input type="hidden" id="userId" name="user.userId" value="<s:property value="#user.userId"></s:property>" />
			
			<div class="unit">
				<label>用户名：</label>
				<input type="text" id="userName" readonly="readonly" class="required" name="user.userName" value="<s:property value="#user.userName"></s:property>" />
			</div>

			<div class="unit">
				<label>用户密码：</label>
				
					<input type="password" id="userPwd" class="required" name="user.userPwd"
						value="<s:property value="#user.userPwd"></s:property>" />
				
			</div>

			<div class="unit">
				<label>用户状态：</label>
				<select name="user.userStatus" id="userStatus" default="<s:property value="#user.userStatus"/>">
						<s:iterator value="#user.userStatusMapping" var="status">
							<option value="<s:property value="#status.key"/>"><s:property value="#status.value"/></option>
						</s:iterator>
				</select>
			</div>

			<div class="unit">
				<label>用户姓名：</label>
				
					<input type="text" id="userRealName" class="required" name="user.userRealName"
						value="<s:property value="#user.userRealName"></s:property>" />
				
			</div>

			<div class="unit">
				<label>用户电话：</label>
				
					<input type="text" id="userPhone" name="user.userPhone" value="<s:property value="#user.userPhone"></s:property>" />
				
			</div>

			<div class="unit">
				<label>用户手机：</label>
				
					<input type="text" id="userMobile" name="user.userMobile"
						value="<s:property value="#user.userMobile"></s:property>" />
				
			</div>

			<div class="unit">
				<label>用户分机：</label>
				
					<input type="text" id="userSubPhone" name="user.userSubPhone"
						value="<s:property value="#user.userSubPhone"></s:property>" />
				
			</div>

			<div class="unit">
				<label>用户地址：</label>
				
					<input type="text" id="userAddress" name="user.userAddress"
						value="<s:property value="#user.userAddress"></s:property>" />
				
			</div>

			<div class="unit">
				<label>用户邮箱：</label>
				
					<input type="text" id="userEmail" name="user.userEmail"
						value="<s:property value="#user.userEmail"></s:property>"  class="required email"/>
				
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>